import pinia from '@/store';
import { useUserStore } from '@/store/modules/user';
const userStore = useUserStore(pinia);
export const isHasButton = (app: any) => {
    app.directive('isHasButton', {
        mounted(el: any, binding: any) {
            if(!userStore.userInfo.buttons.includes(binding.value)){
                el.remove();
            }
        }
    })
}
